liststore: Make a code snippet compile
authorTimm Bäder <mail@baedert.org>
Wed, 3 Jan 2018 14:01:12 +0000 (15:01 +0100)
committerTimm Bäder <mail@baedert.org>
Wed, 3 Jan 2018 16:11:32 +0000 (17:11 +0100)
gtk/gtkliststore.c

index ffbd17bcae946df6b782e07d2c40e6cd5905582d..cc0ecb3fccbd875786ea82398b95480d5596bbc6 100644 (file)
@@ -2164,8 +2164,17 @@ gtk_list_store_has_default_sort_func (GtkTreeSortable *sortable)
  * `gtk_list_store_insert_with_values (list_store, iter, position...)`
  * has the same effect as calling
  * |[<!-- language="C" -->
- * gtk_list_store_insert (list_store, iter, position);
- * gtk_list_store_set (list_store, iter, ...);
+ * static void
+ * insert_value (GtkListStore *list_store,
+ *               GtkTreeIter  *iter,
+ *               int           position)
+ * {
+ *   gtk_list_store_insert (list_store, iter, position);
+ *   gtk_list_store_set (list_store,
+ *                       iter
+ *                       // ...
+ *                       );
+ * }
  * ]|
  * with the difference that the former will only emit a row_inserted signal,
  * while the latter will emit row_inserted, row_changed and, if the list store